package algorithm.view.prepare;

import javax.swing.*;
import java.awt.*;

/**
 * @author bingo
 * @Description
 * @Date 2018/7/20
 */
public class Demo6 {
    private JPanel panel1;
    private JTextField label2;
    private JLabel label1;
    private JTextField textField1;
    private JTextField textField2;
    private JButton loginButton;
    private JButton registerButton;
    private JFormattedTextField formattedTextFormattedTextField;
    private JButton resetButton;
    private JTextPane a123456789TextPane;
    private JEditorPane a123456EditorPane;
    private JRadioButton 男RadioButton;

    public static void main(String[] args) {
        JFrame frame = new JFrame("Demo6");
        //frame.setSize(800, 800);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setContentPane(new Demo6().panel1);
        frame.pack();
        frame.setVisible(true);
        frame.setResizable(false);
    }

    {
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
        $$$setupUI$$$();
    }

    /**
     * Method generated by IntelliJ IDEA GUI Designer
     * >>> IMPORTANT!! <<<
     * DO NOT edit this method OR call it in your code!
     *
     * @noinspection ALL
     */
    private void $$$setupUI$$$() {
        panel1 = new JPanel();
        panel1.setSize(new Dimension(400,800));
        //panel1.setPreferredSize(new Dimension(400,800));
        panel1.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
        panel1.setBackground(new Color(-15035668));
        panel1.setEnabled(false);
        label1 = new JLabel();
        label1.setText("用户名：");
        panel1.add(label1);
        textField1 = new JTextField();
        textField1.setColumns(20);
        panel1.add(textField1);
        label2 = new JTextField();
        label2.setHorizontalAlignment(2);
        label2.setText("密   码:");
        panel1.add(label2);
        textField2 = new JTextField();
        textField2.setColumns(20);
        panel1.add(textField2);
        loginButton = new JButton();
        loginButton.setText("登陆");
        panel1.add(loginButton);
        registerButton = new JButton();
        registerButton.setText("注册");
        panel1.add(registerButton);
        formattedTextFormattedTextField = new JFormattedTextField();
        formattedTextFormattedTextField.setText("formattedText");
        panel1.add(formattedTextFormattedTextField);
        a123456789TextPane = new JTextPane();
        a123456789TextPane.setText("123456789");
        panel1.add(a123456789TextPane);
        resetButton = new JButton();
        resetButton.setText("重置");
        panel1.add(resetButton);
        final JPanel panel2 = new JPanel();
        panel2.setLayout(new CardLayout(0, 0));
        panel2.setBackground(new Color(-12192682));
        panel1.add(panel2);
        男RadioButton = new JRadioButton();
        男RadioButton.setText("男");
        panel2.add(男RadioButton, "Card1");
        a123456EditorPane = new JEditorPane();
        a123456EditorPane.setText("123456");
        panel1.add(a123456EditorPane);
    }

    /**
     * @noinspection ALL
     */
    public JComponent $$$getRootComponent$$$() {
        return panel1;
    }
}
